﻿using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models.System.Dtos.SysConfig
{
    public class SysConfigEmailTestInput
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage = "邮箱地址不能为空")]
        public string account { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "邮箱密码不能为空")]
        public string password { get; set; }
        /// <summary>
        /// POP3服务URL
        /// </summary>
        [Required(ErrorMessage = "POP3服务不能为空")]
        public string pop3Host { get; set; }
        /// <summary>
        /// POP3端口
        /// </summary>
        [Required(ErrorMessage = "POP3端口不能为空")]
        public string pop3Port { get; set; }
        /// <summary>
        /// SMTP服务URL
        /// </summary>
        [Required(ErrorMessage = "SMTP服务不能为空")]
        public string smtpHost { get; set; }
        /// <summary>
        /// SMTP端口
        /// </summary>
        [Required(ErrorMessage = "SMTP端口不能为空")]
        public string smtpPort { get; set; }
        /// <summary>
        /// 是否开启SSL
        /// </summary>
        [Required(ErrorMessage = "是否开启SSL不能为空")]
        public int? ssl { get; set; }
    }
}
